/*********************************************************************************
 **      Copyright:  (C) 2024 linuxer<linuxer@email.com>
 **                  All rights reserved.
 **
 **       Filename:  time.c
 **    Description:  This file 
 **
 **        Version:  1.0.0(17/03/24)
 **         Author:  linuxer <linuxer@email.com>
 **      ChangeLog:  1, Release initial version on "17/03/24 16:52:22"
 **                 
 **********************************************************************************/
#
#include "t_time.h"
//获取当前时间
int get_time(struct tm *now_time)
{
	if(!now_time)
	{
		log_error("Invalid input arguments\n");
		return -1;
	}

	time_t now = time(NULL);
	localtime_r(&now, now_time);

	return 0;

}


